package com.jhs.kjs.service.impl;

import java.util.List;
import java.util.Map;

import com.jhs.kjs.dto.CarGroupDTO;
import com.jhs.kjs.dto.DeptDTO;
import com.jhs.kjs.dto.PaingDTO;
import com.jhs.kjs.model.daumMap.dto.DaumMapDTO;
import com.jhs.kjs.robot.core.ECoord2AddrBatch;
import com.jhs.kjs.service.IReportService;
import com.jhs.kjs.service.dao.IReportMapper;

public class ReportServiceImpl implements IReportService{
	private IReportMapper mapper;
	
	public void setMapper(IReportMapper mapper) {
		this.mapper = mapper;
	}

	@Override
	public List<CarGroupDTO> getGroupList(Map<String, Object> param) {
		return mapper.getGroupList(param);
	}

	@Override
	public List<DeptDTO> getDeptList(Map<String, Object> param) {
		return mapper.getDeptList(param);
	}
	
	@Override
	public List<PaingDTO> getPagingInfo(DaumMapDTO param) {
		try {
			ECoord2AddrBatch.MACHINE.makingPagingAddr(param);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return this.mapper.getPagingInfo(param);
	}

	@Override
	public PaingDTO getPagingInfoCount(DaumMapDTO mapDto) {
		return this.mapper.getPagingInfoCount(mapDto);
	}
	
	@Override
	public List<PaingDTO> getExcelRunData(DaumMapDTO param) {		
		return this.mapper.getExcelRunData(param);
	}
}
